#ifndef MYTCP_H
#define MYTCP_H

#include <QObject>
#include <QTcpServer>
#include <QTcpSocket>

class MyTcp : public QObject
{
    Q_OBJECT
public:
    MyTcp(QObject *par = nullptr);

private slots:
    void newcon();
    void read();
    void close();

private:
    QTcpServer *mytcp;
    QTcpSocket *next;
};

#endif // MYTCP_H
